/*    */ package system.staros.cblock1;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ import system.staros.ablock1.LibLoader;
/*    */ import system.staros.ablock1.SysUtils;
/*    */ import system.staros.ablock2.Updater;
/*    */ 
/*    */ public class Core
/*    */ {
/*    */   public Scheduler scheduler;
/*    */   private long starttime;
/*    */ 
/*    */   public void Core()
/*    */   {
/*    */   }
/*    */ 
/*    */   public long uptime()
/*    */   {
/* 20 */     return System.currentTimeMillis() - this.starttime;
/*    */   }
/*    */ 
/*    */   public void kprintln(String paramString) {
/* 24 */     System.out.print("<");
/* 25 */     System.out.print(uptime());
/* 26 */     System.out.println("> CORE: " + paramString);
/*    */   }
/*    */ 
/*    */   public void start()
/*    */   {
		
/* 31 */     this.starttime = System.currentTimeMillis();
			
/* 32 */     kprintln("System Core started");
/*    */ 
/* 34 */     this.scheduler = new Scheduler();
/*    */ 
/* 37 */     int i = this.scheduler.loadTaskClass("system/staros/cblock2/CoreTask.class");
/* 38 */     if (i == -1) {
/* 39 */       kprintln("Can't start CoreTask");
/* 40 */       return;
/*    */     }
/*    */ 
/* 44 */     Task localTask1 = this.scheduler.getTaskByPID(i);
/* 45 */     localTask1.setScheduler(this.scheduler);
/* 46 */     localTask1.setPriority(5);
/* 47 */     localTask1.start();
/*    */ 
/* 50 */     int j = this.scheduler.loadTaskClass("system/staros/cblock2/Console.class");
/* 51 */     if (j == -1) {
/* 52 */       kprintln("Can't start Console");
/* 53 */       return;
/*    */     }
/* 55 */     Task localTask2 = this.scheduler.getTaskByPID(j);
/* 56 */     localTask2.setParent(localTask1);
/* 57 */     localTask2.start();
/*    */ 
/* 60 */     int k = this.scheduler.loadTaskClass("system/staros/cblock2/Keyboard.class");
/* 61 */     if (k == -1) {
/* 62 */       kprintln("Can't start Keyboard");
/* 63 */       return;
/*    */     }
/* 65 */     Task localTask3 = this.scheduler.getTaskByPID(k);
/* 66 */     localTask3.setParent(this.scheduler.getTaskByPID(i));
/* 67 */     localTask3.start();
/*    */     try
/*    */     {
/* 71 */       System.out.println("WELCOME TO STAROS!");
/* 72 */       System.out.println("v." + SysUtils.getVersion());
/*    */     }
/*    */     catch (Exception localException1)
/*    */     {
/* 76 */       localException1.printStackTrace();
/*    */     }
/*    */ 
/* 79 */     int m = this.scheduler.loadTaskClass("system/staros/cblock2/Shell.class");
/* 80 */     if (m == -1) {
/* 81 */       kprintln("Can't start Shell");
/* 82 */       return;
/*    */     }
/* 84 */     Task localTask4 = this.scheduler.getTaskByPID(m);
/* 85 */     localTask4.setParent(localTask1);
/* 86 */     localTask4.setPriority(5);
/*    */     try {
/* 88 */       Updater.checkUpdates();
/* 89 */       new LibLoader();
/*    */     } catch (Exception localException2) {

/* 91 */       localException2.printStackTrace();
/* 92 */     }localTask4.start();
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.cblock1.Core
 * JD-Core Version:    0.6.1
 */